/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.activity.dto.CnActivityConsumeRecordDTO;
import com.ykht.proj.activity.entity.CnActivityConsumeRecord;

/**
 * 核销表（消费记录表）
 *
 * @author csg
 * @date 2020-12-23 11:13:32
 */
public interface CnActivityConsumeRecordService extends IService<CnActivityConsumeRecord> {
	/**
	 * 消费记录列表（分页，搜索）
	 *
	 * @param page
	 * @param req
	 * @return
	 */
	IPage<CnActivityConsumeRecordDTO> getCnActivityConsumeRecordListPage(Page page, CnActivityConsumeRecordDTO req);

	/**
	 * 根据ID 获取消费记录详情
	 *
	 * @param id
	 * @return
	 */
	CnActivityConsumeRecordDTO getByIdCnActivityConsumeRecord(Long id);

	/**
	 * 下载搜索 核销表（消费记录表）数据
	 *
	 * @param req
	 */
	void downloadExcel(CnActivityConsumeRecordDTO req);

	/**
	 * 添加消费记录  并修改消费次数
	 * @param activityConsumeRecord
	 * @return
	 */
	CnActivityConsumeRecordDTO addCnActivityConsumeRecord(CnActivityConsumeRecord activityConsumeRecord);
}
